/* src/App.css */
:root {
  --primary-color: #1890ff;
  --break-color: #52c41a;
  --idle-color: #d9d9d9;
  --text-color: #333;
  --light-text: #fff;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.5s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
}

.app-container {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.app-container.work {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.app-container.break {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.app-container.idle {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.timer-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-container {
  margin: 0 auto 30px;
  position: relative;
}

.time-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.time {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -2px;
  margin-bottom: 5px;
}

.mode-label {
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.control-button {
  height: 45px;
  min-width: 120px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-button:active {
  transform: translateY(0);
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.setting-group {
  text-align: left;
}

.setting-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-color);
}

.sound-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sound-button {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-value {
  text-align: center;
  font-weight: 500;
  margin-top: 8px;
  color: var(--primary-color);
}

.info-panel {
  margin-top: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #666;
  animation: fadeIn 0.8s ease;
}

/* 响应式设计 */
@media (max-width: 500px) {
  .timer-card {
    padding: 20px;
  }
  
  .time {
    font-size: 2.8rem;
  }
  
  .control-button {
    min-width: 100px;
    height: 40px;
  }
  
  .controls {
    margin-bottom: 20px;
  }
  
  .progress-container .ant-progress-circle {
    width: 240px !important;
    height: 240px !important;
  }
}